package org.kzwl.service.app;


import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import org.kzwl.comm.pojo.bo.book.BooksBasicBO;
import org.kzwl.comm.pojo.dto.book.MyBooksDTO;
import org.kzwl.comm.pojo.dto.book.MyBooksItem;
import org.kzwl.entity.app.BookUser;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 张国伟/郭家恒
 * @since 2020-09-10
 */
public interface BookUserService extends IService<BookUser> {

    //加入书架
    void addMyBooks(BooksBasicBO bo);

    //查询我的书架
    MyBooksDTO myBooks(BooksBasicBO bo);

    //上次阅读
    MyBooksDTO getPrevious(BooksBasicBO bo);

    //更新阅读页数
    void updateContinue(BooksBasicBO bo);

    //取消收藏
    void removeMyBooks(BooksBasicBO bo);

    //我的书架 By web
    IPage<MyBooksItem> myBooksByWeb(BooksBasicBO bo);

}
